<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:forEach items="${requestScope.delivers}" var="deliver">
    <ul class="reset my_delivery">
        <li>
            <div class="d_item">
                <h2 title="随便写">
                    <a target="_blank" href="http://www.lagou.com/jobs/149594.html">
                        <em>${deliver.job.name}</em>
                        <span>（${deliver.job.money.range}）</span>
                    </a>
                </h2>
                <div class="clear"></div>
                <a title="公司名称" class="d_jobname" target="_blank"
                   href="http://www.lagou.com/c/25927.html">
                        ${deliver.job.company.companyName} <span>[${deliver.job.city.cityName}]</span>
                </a>
                <span class="d_time"><fmt:formatDate value="${deliver.inputTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
                <div class="clear"></div>
                <div class="d_resume">
                    使用简历：
                    <span>
                        在线简历
                    </span>
                </div>
                <a class="btn_showprogress" href="javascript:;">
                    <c:choose>
                        <c:when test="${not empty deliver.resumeState.adopt}">
                            已通过
                        </c:when>
                        <c:when test="${not empty deliver.resumeState.inappropriate}">
                            不合适
                        </c:when>
                        <c:when test="${not empty deliver.resumeState.undetermined}">
                            通过初筛
                        </c:when>
                        <c:when test="${not empty deliver.resumeState.check}">
                            已查看
                        </c:when>
                        <c:when test="${ not empty deliver.inputTime}">
                            已投递
                        </c:when>


                    </c:choose>
                    <i></i></a>
            </div>
            <div class="progress_status	dn">

                    <ul class="status_steps">
                        <c:if test="${not empty deliver.inputTime&&!(deliver.inputTime eq null)}">
                       <li class="status_done status_1">1</li>
                        </c:if>
                        <c:if test="${ not empty deliver.resumeState.check &&!(deliver.resumeState.check eq null)}">
                            <li class="status_line status_line_done"><span></span></li>
                            <li class="status_done"><span>2</span></li>
                        </c:if>
                        <c:if test="${not empty deliver.resumeState.undetermined &&!(deliver.resumeState.undetermined eq null)}">
                            <li class="status_line status_line_done"><span></span></li>
                            <li class="status_done"><span>3</span></li>
                        </c:if>
                        <c:if test="${not empty deliver.resumeState.inappropriate&&!(deliver.resumeState.inappropriate eq null)}">
                            <li class="status_line status_line_done"><span></span></li>
                            <li class="status_done">
                                <c:choose>
                                <c:when test="${deliver.resumeState.undetermined eq null}">
                                <span>3</span>
                                </c:when>
                                <c:otherwise><span>4</span></c:otherwise>
                                </c:choose>

                            </li>
                        </c:if>
                        <c:if test="${not empty deliver.resumeState.adopt &&!(deliver.resumeState.adopt eq null)}">
                            <li class="status_line status_line_done"><span></span></li>
                            <li class="status_done">
                                <c:choose>
                                    <c:when test="${deliver.resumeState.undetermined eq null}">
                                        <span>3</span>
                                    </c:when>
                                    <c:otherwise><span>4</span></c:otherwise>
                                </c:choose>

                            </li>
                        </c:if>

                </ul>
                <ul class="status_text">
                    <c:if test="${not empty deliver.inputTime&&!(deliver.inputTime eq null)}">
                        <li>投递成功</li>
                    </c:if>
                    <c:if test="${ not empty deliver.resumeState.check &&!(deliver.resumeState.check eq null)}">
                        <li class="status_text_2">简历被查看</li>
                    </c:if>
                    <c:if test="${not empty deliver.resumeState.undetermined &&!(deliver.resumeState.undetermined eq null)}">
                        <li class="status_text_3">通过初步筛选</li>
                    </c:if>
                    <c:if test="${not empty deliver.resumeState.inappropriate&&!(deliver.resumeState.inappropriate eq null)}">
                        <li class="status_text_3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不合适</li>
                    </c:if>
                    <c:if test="${not empty deliver.resumeState.adopt &&!(deliver.resumeState.adopt eq null)}">
                        <li class="status_text_3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;已通过</li>
                    </c:if>
                        <%--<li class="status_text_2">简历被查看</li>
                        <li class="status_text_3">通过初步筛选</li>
                        <li style="margin-left: 75px;*margin-left: 60px;" class="status_text_4">
                            不合适
                        </li>--%>
                </ul>
                <ul class="status_list">
                    <c:if test="${not empty deliver.resumeState.adopt &&!(deliver.resumeState.adopt eq null)}">
                    <li class="top">
                        <div class="list_time"><em></em><fmt:formatDate value="${deliver.resumeState.adopt}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                        <div class="list_body">
                            您的简历已通过
                            <div>您的简历已通过，公司会发面试通知到您的邮箱，请留意您的邮箱。</div>
                        </div>
                    </li>
                    </c:if>
                    <c:if test="${not empty deliver.resumeState.inappropriate&&!(deliver.resumeState.inappropriate eq null)}">
                    <li class="top">
                        <div class="list_time"><em></em><fmt:formatDate value="${deliver.resumeState.inappropriate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                        <div class="list_body">
                            您的简历被公司标记为不合适
                            <div>您的简历已收到，但目前您的工作经历与该职位不是很匹配，因此很抱歉地通知您无法进入面试。</div>
                        </div>
                    </li>
                    </c:if>
                    <c:if test="${not empty deliver.resumeState.undetermined &&!(deliver.resumeState.undetermined eq null)}">
                    <li class="top">
                        <div class="list_time"><em></em><fmt:formatDate value="${deliver.resumeState.undetermined}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                        <div class="list_body">
                            您的简历已通过初步筛选
                        </div>
                    </li>
                    </c:if>
                    <c:if test="${ not empty deliver.resumeState.check &&!(deliver.resumeState.check eq null)}">
                    <li class="top">
                        <div class="list_time"><em></em><fmt:formatDate value="${deliver.resumeState.check}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                        <div class="list_body">
                            您的简历已被查看
                        </div>
                    </li>
                    </c:if>
                    <c:if test="${not empty deliver.inputTime&&!(deliver.inputTime eq null)}">
                    <li class="bottom">
                        <div class="list_time"><em></em><fmt:formatDate value="${deliver.inputTime}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                        <div class="list_body">
                            公司已成功接收你的简历
                        </div>
                    </li>
                    </c:if>
                </ul>
                <a class="btn_closeprogress" href="javascript:;"></a>
            </div>
        </li>
    </ul>
    <input type="hidden" value="-1" name="tag">
    <input type="hidden" value="" name="r">
</c:forEach>
<div class="Pagination">

    ${requestScope.pageInfo.total}条
    ${requestScope.pageInfo.pages}页
    <a href="#" data-pagenum="1">首页 </a>

    <c:if test="${requestScope.pageInfo.pageNum gt 1}">
    <a href="#" data-pagenum="${requestScope.pageInfo.pageNum-1}">上一页</a>
    </c:if>


    <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">

    <a href="#" data-pagenum="${i}"
            <c:if test="${i eq requestScope.pageInfo.pageNum}"> class="current" </c:if>>${i}</a>
    </c:forEach>


    <c:if test="${requestScope.pageInfo.pageNum lt requestScope.pageInfo.pages}">
    <a href="#" data-pagenum="${requestScope.pageInfo.pageNum+1}">下一页</a>
    </c:if>
    <a href="#" data-pagenum="${requestScope.pageInfo.pages}">尾页 </a>
    ${requestScope.pageInfo.pageNum}/${requestScope.pageInfo.pages}页
</div>